Predefined objects These object exist at all times and can be very helpful in your scripting. Look in the file
Attach:g_allclasses.html in the docs folder of your
MOHRadiant installation for a complete definition of these objects:
game
From the SDK documentation:
Refers to the unique game object which maintains its state across levels. Only primitive values (integers/floats/strings/vectors) will persist across levels
This is an object of class Game.
level
From the SDK documentation:
Refers to the unique level object which maintains its state for the duration of a level.
This is an object of class Level. It is commonly used to store information that is accessed by multiple threads; an alternate location to store such information would be as variables in any entities used by the threads.
local
From the SDK documentation:
Refers to the thread executing the current command.
This is an object of class
ScriptThread?. It is commonly used to store variables for use by the thread. Any call to a command that does not explicitly specify an entity that it applies to will apply to local, i.e.
$foo remove will apply the
remove command to
$foo;
end will apply the
end command to
local.